﻿using FreeSql.DataAnnotations;
using GalaSoft.MvvmLight;
using Newtonsoft.Json;
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace sys_Print.DataAsset
{
    [AddINotifyPropertyChangedInterface]
    [JsonObject(MemberSerialization.OptIn), Table(Name = "t_percode")]
    public partial class ENNCode : ObservableObject
    {

        [JsonProperty, Column(DbType = "nvarchar(50)", IsPrimary = true)]
        public string QRCode { get; set; } = string.Empty;

        [JsonProperty, Column(Name = "corporate_name", DbType = "nvarchar(MAX)")]
        public string CorporateName { get; set; } = string.Empty;

        [JsonProperty, Column(Name = "delete")]
        public bool Delete { get; set; }

        [JsonProperty, Column(Name = "factory_no")]
        public int? FactoryNo { get; set; }

        [JsonProperty, Column(Name = "note", DbType = "nvarchar(MAX)")]
        public string Note { get; set; } = string.Empty;

        [JsonProperty, Column(Name = "number", DbType = "nvarchar(10)")]
        public string Number { get; set; } = string.Empty;

        [JsonProperty, Column(Name = "object_number", DbType = "nvarchar(32)")]
        public string ObjectNumber { get; set; } = string.Empty;

        [JsonProperty, Column(Name = "type_name", DbType = "nvarchar(MAX)")]
        public string TypeName { get; set; } = string.Empty;

    }
}
